package per.wxp.kafka.web;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;


@Component("listener")
public class Listener {


//    protected final Logger logger = LoggerFactory.getLogger(Listener.class);
//    @KafkaListener(topics = {"test"})
//    public void listen(ConsumerRecord<?, ?> record) {
//        logger.info("kafka的key: " + record.key());
//        logger.info("kafka的value: " + record.value().toString());
//
//    }
}
